<?php
require_once 'common/conn.php';
$data = array();
$db = new DBC();
$sql = "SELECT flashcode FROM t_product WHERE status = 1 ORDER BY flashcode";
$data = $db->fetchData($sql);

echo json_encode($data);
?>